package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2022-08-26
 */
@TableName("dept_measuring_info")
@Data
public class DeptMeasuringInfo extends Model<DeptMeasuringInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位类型
     */
    @ApiModelProperty(value = "测量类型")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer measuringTypeCode;

    /**
     * 单位类型名称
     */
    @ApiModelProperty(value = "测量类型名称")
    private String measuringTypeName;


    @ApiModelProperty(value = "部门编号")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer deptId;


    @ApiModelProperty(value = "是否开启自检")
    private Boolean isSelf;



    @ApiModelProperty(value = "是否开启光源")
    private Boolean isLightSource;

    @ApiModelProperty(value = "间隔时间")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer intervalTime;
}
